﻿@model BlogPostTagListModel
@if (Model.Tags.Any())
{
    <div id="block-popular-blogtags" class="block block-popular-blogtags">
        <h2 class="h5">
            <strong>@Loc["Blog.TagCloud"]</strong>
        </h2>
        <div class="viewBox">
            <div class="product-tags-list">
                @foreach (var item in Model.Tags)
                {
                    <a size="sm" class="btn btn-sm btn-light mb-2 mr-2" href="@Url.RouteUrl("BlogByTag", new { tag = item.Name })" style="font-size:@(Model.GetFontSize(item))%;">
                        @item.Name
                    </a>
                }
            </div>
        </div>
    </div>
}